package cn.tedu.tnt_sky.mapper;


import cn.tedu.tnt_sky.pojo.dto.FeedbacksStatusDTO;
import cn.tedu.tnt_sky.pojo.vo.FeedbacksListVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 17975
* @description 针对表【feedbacks】的数据库操作Mapper
* @createDate 2023-08-19 13:17:07
* @Entity cn.tedu.tnt_sky.pojo.entity.Feedbacks
*/
@Mapper
public interface FeedbacksMapper{
    /**
     * 查询反馈列表
     * @return
     */
    Page<FeedbacksListVO> getAllFeedbacks();

    /**
     * 修改状态
     * @param feedbacksStatusDTO
     */
    void updateFeedbackStatus(FeedbacksStatusDTO feedbacksStatusDTO);

    @Delete("delete from feedbacks where id =#{id}")
    void deleteFeedback(long id);
}
